﻿using System.Collections.Generic;
using System.Linq;
using Monkey.Warrenty.Data.Interfaces;
using Monkey.Warrenty.EntityModel;

namespace Monkey.Warrenty.Data
{
    public class ServiceTypeDao : IServiceTypeDao
    {
        public List<ServiceType> GetAllServiceTypes()
        {
            using (var context = new MonkeyWarrantyEntities())
            {
                return context.ServiceTypes.ToList();
            }
        }
    }
}
